import axios from '../axios'
import { USERS } from '../consts';
export default {
    getUsers(params) {
        return axios({
            url: USERS + '/getUsers',
            method: 'get',
            params
        })
    },
    getUsersById(params) {
        return axios({
            url: USERS + '/getUsersById',
            method: 'get',
            params
        })
    },
    addUsers(data) {
        return axios({
            url: USERS + '/addUsers',
            method: 'post',
            data
        })
    },
    updateUsers(data) {
        return axios({
            url: USERS + '/updateUsers',
            method: 'post',
            data
        })
    },
    deleteUsersById(data) {
        return axios({
            url: USERS + '/deleteUsersById',
            method: 'post',
            data
        })
    }
}